package com.lanou3g.hw0520.Controller;

import com.lanou3g.hw0520.model.Login;
import com.lanou3g.hw0520.pojo.User;
import com.sun.tools.internal.xjc.model.Model;

public class Controller {
    private Login login;
    public Controller(){
        login = new Login();
    }
    public User loginn(String username,String password){
        if (username==null||password==null){
            return null;
        }
        User user = this.login.login(username, password);
        return user;

    }
}
